package lab02.test37;

public class StudentDemo {
    public static void main(String[] args) {

        Graduate graduate = new Graduate();

        graduate.name = "研究生张三";
        graduate.avgScore = 81;

        Undergraduate undergraduate =new Undergraduate();
        undergraduate.name = "本科生李四";
        undergraduate.avgScore = 59;

        System.out.println(undergraduate.name+":"+
                undergraduate.ifPass()
        );
        System.out.println(graduate.name+":"+
                graduate.ifPass()
        );

    }
}
